import request from "@/utils/request";
/**
 * 存活记录列表
 * @param {*} data
 * @returns
 */
export function API_surviveList(params) {
  return request({
    url: "/survive/list",
    method: "get",
    params,
  });
}

/**
 * 存活记录新增
 * @returns
 */
export function API_surviveCreate(data) {
  return request({
    url: "/survive/create",
    method: "post",
    data,
  });
}

/**
 * 存活记录修改
 * @returns
 */
export function API_surviveEdit(data) {
  return request({
    url: `/survive/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 存活记录删除
 * @returns
 */
export function API_surviveDelete(data) {
  return request({
    url: `/survive/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 存活记录记录
 * @returns
 */
export function API_surviveGet(params) {
  return request({
    url: "/survive/get",
    method: "get",
    params,
  });
}
